﻿@{
    Layout = null;
}

<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    
    <!--IE Compatibility modes-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--Mobile first-->
    <meta validateRequest="false" name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

    <meta name="description" content="Free Admin Template Based On Twitter Bootstrap 3.x">
    <meta name="author" content="">

    <meta name="msapplication-TileColor" content="#5bc0de" />
    <meta name="msapplication-TileImage" content="~/Content/themes/bootstrap_blogMs/public/assets/img/metis-tile.png" />
    <!--jQuery -->
    <script src="~/Scripts/jquery-1.9.1.js"></script>
    <script src="~/Scripts/jquery-1.9.1.min.js"></script>
    <!-- Bootstrap -->
    <link href="~/Content/themes/bootstrap_blogMs/public/assets/lib/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <!-- Font Awesome -->
    <link rel="stylesheet" href="~/Content/themes/bootstrap_blogMs/public/assets/lib/font-awesome/css/font-awesome.css">

    <!-- Metis core stylesheet -->
    <link rel="stylesheet" href="~/Content/themes/bootstrap_blogMs/public/assets/css/main.css">
    <!-- animate.css stylesheet -->
    <link rel="stylesheet" href="~/Content/themes/bootstrap_blogMs/public/assets/lib/animate.css/animate.css">

    <script src="~/Content/themes/tinymce/js/tinymce/tinymce.min.js"></script>
    <script src="~/Content/themes/tinymce/js/tinymce/jquery.tinymce.min.js"></script>
    <script type="text/javascript">
      tinymce.init({
          selector: '#MessageDetail',
          height: 500,
          theme: 'modern',
          plugins: [
            'advlist autolink lists link image charmap print preview hr anchor pagebreak',
            'searchreplace wordcount visualblocks visualchars code fullscreen',
            'insertdatetime media nonbreaking save table contextmenu directionality',
            'emoticons template paste textcolor colorpicker textpattern imagetools codesample toc help'
          ],
          toolbar1: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',
          toolbar2: 'print preview media | forecolor backcolor emoticons | codesample help',
          image_advtab: true,
          templates: [
            { title: 'Test template 1', content: 'Test 1' },
            { title: 'Test template 2', content: 'Test 2' }
          ],
          language: 'zh_CN'

      });
    </script>


    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!--For Development Only. Not required -->
    <script>
        less = {
            env: "development",
            relativeUrls: false,
            rootpath: "/assets/"
        };
    </script>
    <link rel="stylesheet" href="~/Content/themes/bootstrap_blogMs/public/assets/css/style-switcher.css">
    <link rel="stylesheet/less" type="text/css" href="~/Content/themes/bootstrap_blogMs/public/public/assets/less/theme.less">
</head>

<body class=" ">
    <div class="bg-dark dk" id="wrap">
        <div class="main-bar">
            <h3>
                <i class="fa fa-home"></i>&nbsp;
                DMP——博客后台管理系统
            </h3>
        </div>
        <div id="content">
            <div class="outer">
                <div class="inner bg-light lter" <div style="  min-height: 680px;">
                    <form  id="myform" method="post" action="/blogMS/ShuoShuoDetailAction" >
                                                     <div>
                                                         文章类型<select class="form-control input-sm" value="@(ViewData["MessageType"] ??"")" name="MessageType" id="MessageType">
    <option>11</option>
</select>
                                                     </div>
                <input id="id" name="id" hidden value="">
                                                     <div>
                                                         标题<input class="form-control input-sm" name="Name" id="Name" value="@(ViewData["Name"]??"")">
                                                     </div>
                                                     <div>
                                                         简介<input class="form-control input-sm" id="MessageProfile" value="@(ViewData["MessageProfile"] ??"")" name="MessageProfile">
                                                     </div>
                                                     <div>
                                                         详情<input id="MessageDetail" value="@(ViewData["Detail"] ??"")" name="MessageDetail">
                                                     </div>
                        <div hidden >
                           执行类型<input id="actionType" name="actionType">
                        </div>
                        
                                                     <input type="submit" class="btn btn-metis-5 btn-xs btn-grad btn-rect" data-original-title="" value="提交" title="" /></form>

                </div>
                <!-- /.inner -->
            </div>
                <!-- /.outer -->
            </div>
            <!-- /#content -->
      
        </div>
        <!-- /#wrap -->
        <footer class="Footer bg-dark dker">
            <p>2017 &copy;DMP——博客后台管理系统 -V1 </p>
        </footer>
        <!-- /#footer -->
      
        <!--Bootstrap -->
        <script src="~/Content/themes/bootstrap_blogMs/public/assets/lib/bootstrap/js/bootstrap.js"></script>
        <!-- Metis demo scripts -->
        <script src="~/Content/themes/bootstrap_blogMs/public/assets/js/app.js"></script>

        <script>
            //$("#actionType").val($.getQueryString("Type"));
            (function($){
                $.getUrlParam = function(name){  
                    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");  
                    var r = window.location.search.substr(1).match(reg);  
                    if (r!=null) return unescape(r[2]);   
                    return null;  
                }  
            })(jQuery);  
  
            $(function(){  
                //通过url获取id  
                var Type = $.getUrlParam('type');
                $("#actionType").val(Type);
                var id = $.getUrlParam('id');
                $("#id").val(id);
            })
           
        </script>

</body>

</html>
